import service from "../service";

/**
 * 登录
 * @param {String} phone 手机
 * @param {String} password 密码
 */
export const login = (phone, password) => {
	return service.post('/login', {
		phone: phone,
		password: password
	});
}

/**
 * 注册
 * @param {String} phone 
 * @param {String} password 
 * @param {String} email 
 */
export const register = (phone, password, email) => {
	return service.post('/register', {
		phone: phone,
		password: password,
		email: email
	});
}